<?php
namespace app\index\controller;


use app\common\model\Tips as TipsModel;
use app\index\controller\FrontBase;
use think\Config;
use think\Request;

class Service extends FrontBase
{
    public function index(){
        $tips = TipsModel::order('id desc')->where('type','5')->select();
        $tips = collection($tips)->toArray();
        $tips = array_chunk($tips,4);
        $this->param['tips'] = $tips;

        return view('',$this->param);
    }

    public function coverage(){

        return view('',$this->param);
    }

    public function assurance(){

        return view('',$this->param);
    }


    public function network(){
        $tips = TipsModel::order('id desc')->where('type','4')->select();
        $tips = collection($tips)->toArray();
        $tips = array_chunk($tips,3);

        $this->param['tips'] = $tips;

        return view('',$this->param);
    }


    public function considerations(){

        $tips = TipsModel::order('id desc')->where('type','3')->paginate(1);
        $this->param['tips'] = $tips;

        return view('',$this->param);
    }
}